package ${packageName};

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

<#list imports as import>
<#if import!="java.lang.Integer">
import ${import};
</#if>
</#list>

<#if entity.fields?? && (entity.fields?size > 0)>
<#list entity.fields as f>
    <#if f.name == "createTime" || f.name == "operateTime">
        <#continue>
    </#if>
    <#if f.className == "LocalDateTime">
import java.time.LocalDateTime;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.wuyan.web.base.helper.jackson.DateTimeDeserializer;
        <#break>
    </#if>
</#list>
</#if>

/**
 * form for ${entity.className} generated by jpa-codegen
 * ${comments}
 *
 * @author ${author}
 * @date ${date}
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ${className} {

    <#if entity.fields?? && (entity.fields?size > 0)>
        <#list entity.fields as f>
            <#if f.name == "cfgModify" || f.name == "createTime" || f.name == "operateTime">
                <#continue>
            </#if>

    /**
    * ${f.desc.value()}
    */
            <#if f.className == "LocalDateTime">
    @JsonDeserialize(using = DateTimeDeserializer.class)
            </#if>
    private ${f.className} ${f.name};

        </#list>
    </#if>
}